Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions / Creating and Disposing of Time Bases


SetMovieMasterTimeBase

You can use the SetMovieMasterTimeBase function to assign a master time base to a movie. Do not use the SetTimeBaseMasterTimeBase function (described on page 2-301) to assign a time base to a movie.

pascal void SetMovieMasterTimeBase (Movie theMovie, TimeBase tb, 
                                    const TimeRecord *slaveZero);
theMovie
Specifies the movie for this operation. Your application obtains this movie identifier from such functions as NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
tb
Specifies the master time base to be assigned to this movie. Your application obtains this time base identifier from the NewTimeBase function (described on page 2-297).
slaveZero
Contains a pointer to the time, in the time scale of the master time base, that corresponds to a 0 time value for the movie. This parameter allows you to set an offset between the movie and the master time base. Set this parameter to nil if there is no offset.
SPECIAL CONSIDERATIONS
The SetMovieMasterTimeBase function cannot be called at interrupt time.

ERROR CODES
None


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996